package color.koitq.picker.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

public class Tab4Model implements Parcelable {
    public long id;
    public String title;
    public List<String> colors;
    public int modelFlag ;
    public int modelId;

    public Tab4Model() {
    }

    public Tab4Model(String title, List<String> colors, int modelFlag,int id) {
        this.title = title;
        this.colors = colors;
        this.modelFlag = modelFlag;
        this.modelId=id;
    }


    protected Tab4Model(Parcel in) {
        id = in.readLong();
        title = in.readString();
        colors = in.createStringArrayList();
        modelFlag = in.readInt();
        modelId = in.readInt();
    }

    public static final Creator<Tab4Model> CREATOR = new Creator<Tab4Model>() {
        @Override
        public Tab4Model createFromParcel(Parcel in) {
            return new Tab4Model(in);
        }

        @Override
        public Tab4Model[] newArray(int size) {
            return new Tab4Model[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(id);
        dest.writeString(title);
        dest.writeStringList(colors);
        dest.writeInt(modelFlag);
        dest.writeInt(modelId);
    }
}
